package zl3.com;


import java.util.InputMismatchException;
import java.util.Scanner;

/**
 * Created with Intellij IDEA.
 * Description:
 * User:张蕾
 * Date:2023-06-06
 * Time:13:39
 */
import java.io.IOException;

import static java.lang.Math.sqrt;

class Test{
    public static void main(String[] args) {
        int sum=0;

        for (int i = 2; i <=97 ; i++) {
            int t=1;
            for (int j = 2; j <=sqrt(i) ; j++) {
                if (i%j==0){
                    t=0;
                    break;
                }

            }
           if (t==1){
               sum+=i;
           }

        }
        System.out.println(sum);

    }
}